<template>
  <div class="app-container">

    <!--  操作按钮 开始  -->
    <el-row :gutter="10" class="mb8">

      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-plus"
          size="small"
          @click="handleBatchProcessing"
          v-hasPermi="['hd:apply:batchProcessing']"
        >批量处理</el-button>
      </el-col>

      <el-col :span="1.5">
        <el-button
          type="warning"
          icon="el-icon-download"
          size="small"
          @click="handleExport"
          v-hasPermi="['hd:apply:export']"
        >导出</el-button>
      </el-col>

    </el-row>
    <!--  操作按钮 结束  -->

    <!--  表格  开始  -->
    <el-table v-loading="loading" border @selection-change="handleSelectionChange">
     <el-table-column label="编号" align="center" prop="id" />
      <el-table-column label="组织名称" align="center" prop="orgName" />
      <el-table-column label="操作" align="center" width="380px;" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="small"
            type="primary"
            icon="el-icon-view"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['hd:apply:edit']"
          >查看</el-button>
        </template>
      </el-table-column>
    </el-table>


  </div>
</template>

<script>
  import { listApply, getApply, delApply, addApply, updateApply, updateStatus,GetYearList } from "@/api/hd/apply";

  export default {
    name: "Apply",
    dicts: ['sys_apply_state'],
    data() {
      return {
        // 遮罩层
        loading: true,
        // 选中数组
        ids: [],
      };
    },
    created() {
      this.getList();
    },
    methods: {
      handleExport() {
      this.download(
        'hd/recruit/export',
        {
          ...this.queryParams,
        },
        `recruit_${new Date().getTime()}.xlsx`
      );
    },
    }
  };
</script>

<style scoped>

</style>
